package top.yonyong.myprometheus.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author admin
 */
@RestController
@RequestMapping("/v1")
@Api(tags = "暴露rest服务")
public class ExposeRest {

    @GetMapping("/get/{str}")
    @ApiOperation(value = "get监控")
    public Object testGet(@PathVariable String str){
        return "Get SUC" + str;
    }

    @PostMapping("/post/{str}")
    @ApiOperation(value = "post监控")
    public Object testPost(@PathVariable String str){
        return "Post SUC" + str;
    }

    @PutMapping("/put/{str}")
    @ApiOperation(value = "put监控")
    public Object testPut(@PathVariable String str){
        return "Put SUC" + str;
    }

    @DeleteMapping("/delete/{str}")
    @ApiOperation(value = "delete监控")
    public Object testDelete(@PathVariable String str){
        return "Delete SUC" + str;
    }
}
